import complex_query from '@feidao/web/atom/nodejs/db/complex-query';
import { spaceid, systemid } from './atom/config';

interface Message {
}

/**
 * @description 不为空
 * @param
 */

export default async function atom(msg: Message, action_id: string, session_id: string) {
	const cquery = complex_query(action_id, spaceid, systemid);

	const res = await cquery.add_field('supplier', 'currency', 'currency')
		.add_field('supplier', 'supplier_contact', 'supplier_contact')
		.add_field('supplier', 'group_name', 'group_name')
		.where_not_null('supplier', 'tax_code')
		.exec();

	return res;
}
